﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PFMConfigurations;

namespace PFMCandidate
{
    public class Candidate
    {
        private PFMConfigurations.Target o_Target;
        private string s_fileName;
        private DateTime dt_file;
        //private long l_size;

        public string Name { get { return s_fileName; }  }//也可以采用自动属性的特性实现 private set;
        public Target Target { get { return o_Target; } }
        public DateTime FileDateTime { get { return dt_file; } }
        public string ProcessedName { get; set; } //ProcessedName可读可写，
        //public long  Size { get { return l_size; } }
        public long Size { get; private set; }
        //修改internal访问限制符,使得只能被同一命名空间所访问.
        internal  Candidate(Target aTarget)
        {
            o_Target = aTarget;
        }

        internal Candidate(PFMConfigurations.Target o_Target, string sFileName, DateTime dateTime, long lsize)
        {
            // TODO: Complete member initialization
            this.o_Target = o_Target;
            this.s_fileName = sFileName;
            this.dt_file = dateTime;
            //this.l_size = lsize;
            Size = lsize;
        }

    }
}
